package pri.syl.xiaowu.websocket.core.template.core.constant;

/**
 * @Author YunLong
 * @Date 2021/7/18 17:59
 * @Description websocket消息响应
 **/
public enum WebsocketMessageConstant {
    /**
     * PingResponse
     * ꒰⑅•ᴗ•⑅꒱
     */
    PING_RESPONSE(new byte[]{-22, -110, -80, -30, -111, -123, -30, -128, -94, -31, -76, -105, -30, -128, -94, -30, -111, -123, -22, -110, -79}),
    /**
     * PongResponse
     * ₍ᐢ •⌄• ᐢ₎
     */
    PONG_RESPONSE(new byte[]{-30, -126, -115, -31, -112, -94, 32, -30, -128, -94, -30, -116, -124, -30, -128, -94, 32, -31, -112, -94, -30, -126, -114});

    private final byte[] value;

    WebsocketMessageConstant(byte[] value) {
        this.value = value;
    }

    public byte[] getValue() {
        return value;
    }

}
